<!-- 完善信息 -->
<div ng-if="pagedata.show_setmember" class="popup" id="show_card">
<style>
.my_span {
      display: flex;
      width: 100%;
      height: 2.5rem;
}
.my_span span {
     flex: 1;
	 font-size:1.6rem;
	 padding-top:0.4rem;
     border: #ddd solid 1px;
	 margin:0 0.2rem;
}
.my_span span.hover,.my_span span:hover{
     border: #999 solid 1px;
}
.my_input{
	  position: absolute;
	  width:120%;
      height: 2.5rem;
      line-height: 2.5rem;
      top: 0.5rem;
      left: 0.6rem;
      background: none;
      overflow: hidden;
}
.my_input input{
		float: left;
		width: 120%;
        height: 2.5rem;
        line-height: 2.5rem; 
        margin-top: 0.2rem;
        letter-spacing: 1rem;
        background: none;
        text-indent: 0.95rem;
		font-size:2rem;
		caret-color: transparent;
		color: transparent;
}
.fui-cell-group .fui-cell:before {
		border-top: 0 solid #ebebeb;
}
</style>
	<div class="popup-body">
    <div class="popup-bottom" style="height:18rem;">
		<div class="weui_cells_title bold" style="padding:0 0.8rem;font-size:1.3rem;margin-top:0.5rem;margin-bottom:0;color:#000">完善会员信息</div>
		<div class="weui_cells_title subtitle" style="padding:0 0.8rem;margin-top:-0.2rem;">完善会员信息，更好的享受服务。</div>
		<div class="fui-cell-group fui-cell-click" style="padding:0 0.2rem;">
			<div class="fui-cell" ng-click="image(pagedata.setmember,'avatar')">
				<div class="fui-cell-label">会员头像</div>
				<div class="fui-cell-media">
					<img ng-src="{{tomedia(pagedata.setmember.avatar) || '../core/resource/images/gw-user.png'}}" id="avatar"/>
				</div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">会员昵称</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置昵称" ng-model="pagedata.setmember.nickname" /></div>
			</div>
		</div>
		<div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">
                        <label class="checkbox-inline">
                            <input type="checkbox" value="1" ng-model="pagedata.setmember.check" class="fui-checkbox-primary" id="agree" ng-checked="pagedata.setmember.check==1"/> 我已经阅读并了解了<a id="btn-apply" ng-click="pagedata.show_xieyi=true;" style="color:#337ab7;">【{{pagedata.setmember.xieyi_title || '客户隐私协议'}}】</a>。
                        </label>
                    </div>
                </div>
        </div>
		<button class="weui_btn weui_btn_primary" style="width: 80%;margin-top:1rem" href='javascript:;' ng-click="post(pagedata.setmember,'core/member.cavatar/post/')">确认提交</button>
		<i class="closed icon icon-cuowu" ng-click="pagedata.show_setmember=false"></i>
	</div>
	</div>
	<div ng-include="sys_html('common/_xieyi',true)"></div>
	<script>
	console.log('setmember');
	scope.pagedata.setmember={}
	scope.pagedata.getmobileset=function(){
		scope.get('core/member.cavatar/get/',function(res){
			scope.pagedata.setmember=res.item;
			scope.pagedata.setmember.setmember=1;
			scope.pagedata.setmobile=scope.pagedata.setmobile?scope.pagedata.setmobile:{}
			scope.pagedata.setmobile.user_xieyi=res.item.user_xieyi;
			scope.pagedata.setmobile.xieyi_title=res.item.xieyi_title;
			scope.$evalAsync();
		});
	}
	if(scope.pagedata.show_setmember){
		scope.pagedata.getmobileset();
	}

	</script>
</div>